Auto merge of #1396 - alexcrichton:issue-1390, r=huonw
authorbors <bors@rust-lang.org>
Tue, 10 Mar 2015 03:42:12 +0000 (03:42 +0000)
committerbors <bors@rust-lang.org>
Tue, 10 Mar 2015 03:42:12 +0000 (03:42 +0000)
When calculating the output directory filename, only use the "file name"
component of the target triple specified as otherwise the output could be placed
into an odd location.

Closes #1390


Trivial merge